<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt-br">
<?php 
	require_once('functions.php');
	require_once('user.php');
	require_once('checklist.php');
	session_start();
	if(!$_SESSION['email'])
	   header('location /savua');
	else
    	$user = new user($_SESSION['email']);

    $cid = $_GET['cid'];
    //$con = getdb();
    $checklist = new checklist($cid,NULL,NULL);
    // if(!$_SESSION['nota']){
    // 	header('location /labua');
    // }
    // else{
    // 	$nota = $_SESSION['nota'];
    // 	$url = $_SESSION['url'];
    // }
    //pg_close($con);
?>

<?php include 'header.php' ?>
	
	<body>
		<?php include 'head.php' ?>
		<div class="content-wrapper">
			<?php include 'sidebar.php' ?>
			<div class="content">
				<div class="resultado">
					<p>
						Demonstrativo da Avaliação de Usabilidade e acessibilidade do website <a href="#" > <?php echo $checklist->url; ?> </a>
					</p>
					<table>
						<tr>
							<th>Tipo de Avaliação</th>
							<th>Nota</th>
						</tr>
						<tr>
							<td>Resumida</td>
							<td><?php echo $checklist->short_checklist_rating; ?></td>
						</tr>
						<?php 
							if ( $checklist->usability_checklist_rating > 0) {
						?>
						<tr>
							<td>Usabilidade</td>
							<td><?php echo $checklist->usability_checklist_rating; ?></td>
						</tr>
						<?php 
							}
						?>
					</table>
					<a href="/savua">Fazer uma nova Avaliação</a><br/>
<!-- 					<a href="/savua/evaluations.php">Ver todas</a>
 -->				
				</div>
			</div>
		</div>
	</body>